package com.hbms.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hbms.business.mapper.HotelbmsUsereducationalMapper;
import com.hbms.business.domain.HotelbmsUsereducational;
import com.hbms.business.service.IHotelbmsUsereducationalService;

/**
 * 用户学历Service业务层处理
 * 
 * @author zl
 * @date 2024-04-10
 */
@Service
public class HotelbmsUsereducationalServiceImpl implements IHotelbmsUsereducationalService 
{
    @Autowired
    private HotelbmsUsereducationalMapper hotelbmsUsereducationalMapper;

    /**
     * 查询用户学历
     * 
     * @param userEducationalId 用户学历主键
     * @return 用户学历
     */
    @Override
    public HotelbmsUsereducational selectHotelbmsUsereducationalByUserEducationalId(Long userEducationalId)
    {
        return hotelbmsUsereducationalMapper.selectHotelbmsUsereducationalByUserEducationalId(userEducationalId);
    }

    /**
     * 查询用户学历列表
     * 
     * @param hotelbmsUsereducational 用户学历
     * @return 用户学历
     */
    @Override
    public List<HotelbmsUsereducational> selectHotelbmsUsereducationalList(HotelbmsUsereducational hotelbmsUsereducational)
    {
        return hotelbmsUsereducationalMapper.selectHotelbmsUsereducationalList(hotelbmsUsereducational);
    }

    /**
     * 新增用户学历
     * 
     * @param hotelbmsUsereducational 用户学历
     * @return 结果
     */
    @Override
    public int insertHotelbmsUsereducational(HotelbmsUsereducational hotelbmsUsereducational)
    {
        return hotelbmsUsereducationalMapper.insertHotelbmsUsereducational(hotelbmsUsereducational);
    }

    /**
     * 修改用户学历
     * 
     * @param hotelbmsUsereducational 用户学历
     * @return 结果
     */
    @Override
    public int updateHotelbmsUsereducational(HotelbmsUsereducational hotelbmsUsereducational)
    {
        return hotelbmsUsereducationalMapper.updateHotelbmsUsereducational(hotelbmsUsereducational);
    }

    /**
     * 批量删除用户学历
     * 
     * @param userEducationalIds 需要删除的用户学历主键
     * @return 结果
     */
    @Override
    public int deleteHotelbmsUsereducationalByUserEducationalIds(Long[] userEducationalIds)
    {
        return hotelbmsUsereducationalMapper.deleteHotelbmsUsereducationalByUserEducationalIds(userEducationalIds);
    }

    /**
     * 删除用户学历信息
     * 
     * @param userEducationalId 用户学历主键
     * @return 结果
     */
    @Override
    public int deleteHotelbmsUsereducationalByUserEducationalId(Long userEducationalId)
    {
        return hotelbmsUsereducationalMapper.deleteHotelbmsUsereducationalByUserEducationalId(userEducationalId);
    }
}
